package com.java2207.group1.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author lz
 * @Date 2022/7/26 14:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Food {

    private Integer id;//仓库食材id
    private Integer meatNumber;//仓库有的肉类数量
    private Integer vegetableNumber;//仓库有的蔬菜数量
    private Integer fruitNumber;//仓库有的水果数量
    private Integer cerealNumber;//仓库有的粮食数量
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date time;//时间

}
